import { adapter as http } from '@zh/common-utils/http'

/**
 * 通过数据Code模糊查询列表
 * @param {String} code
 */
export function getCode (code) {
  return http.get(`conf/dict/list/contain/${code}`)
}

/**
 * 根据 code 查询列表 用于表单下拉、单选
 * @param {Object} params {"code":"JKFL"}
 */
export function getCodeListByCode (code) {
  return http.get(`/conf/dict/list/by/${code}`)
}
